<template>
  <div class="NavBer">
    <img src="../assets/back-fill.png" alt="返回" @click="back()">
    <p>{{navtitle}}</p>
  </div>
</template>

<script>
export default {
  name: 'NavBer',
	props:['navtitle'],
  data () {
    return {
      msg: ""
    }
  },
  methods:{
      back(){
          this.$router.back()
      }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.NavBer{
  width: 100%;
  height: .44rem;
  font-size: .18rem;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  >img{
    width: .1rem;
    height: .18rem;
    position: absolute;
    left: .14rem;
  }
  &::after{
    content:"";
    width: 100%;
    height: 1px;
    background-color: #ccc;
    transform: scaleY(.5);
    position: absolute;
    left: 0;
    bottom: 0;
  }
}
</style>
